package com.yuqiao.read.design.command;

/**
 * 打开电灯的命令
 */
public class LightOnCommand implements Command {
    private Light light;
    @Override
    public void execute() {
        light.on();
    }

    public LightOnCommand(Light light){
        this.light = light;
    }
}
